package view

import "time"

type ReconciliationViewStruct struct {
	ParkingLotId              int       `json:"parking_lot_id" gorm:"type:int(10) unsigned; NOT NULL; "`
	ParkingLotMuchId          string    `json:"parking_lot_much_id" gorm:"type:varchar(255); COMMENT:'停车场商户信息'"`
	ParkingLotParkCode        string    `json:"parking_lot_park_code" gorm:"type:varchar(20)"`
	ParkingLotName            string    `json:"parking_lot_name" gorm:"type:varchar(100); COMMENT:'名称'"`
	ParkingLotAddress         string    `json:"parking_lot_address" gorm:"type:varchar(100); COMMENT:'地址'"`
	ParkingLotParkingNumber   int       `json:"parking_lot_parking_number" gorm:"type:int(10); COMMENT:'停车位数量'"`
	ParkingLotStopType        string    `json:"parking_lot_stop_type" gorm:"type:varchar(100); COMMENT:'停车类型'"`
	ParkingLotLongitude       float32   `json:"parking_lot_longitude" gorm:"type:float; COMMENT:'经度'"`
	ParkingLotLatitude        float32   `json:"parking_lot_latitude" gorm:"type:float; COMMENT:'纬度'"`
	ParkingLotState           int       `json:"parking_lot_state" gorm:"type:smallint(1); "`
	ParkingLotSort            int       `json:"parking_lot_sort" gorm:"type:smallint(3); "`
	ParkingLotClicks          int       `json:"parking_lot_clicks" gorm:"type:int(10); "`
	ParkingLotRegionCode      string    `json:"parking_lot_region_code" gorm:"type:varchar(50)"`
	ParkingLotRegionName      string    `json:"parking_lot_region_name" gorm:"type:varchar(50)"`
	ParkingLotParkCity        string    `json:"parking_lot_park_city" gorm:"type:varchar(50)"`
	ParkingLotPType           int       `json:"parking_lot_p_type" gorm:"type:int(11)"`
	ParkingLotMTime           string    `json:"parking_lot_m_time" gorm:"type:varchar(32)"`
	ParkingLotFreeMinutes     int       `json:"parking_lot_free_minutes" gorm:"type:int(11); COMMENT:'免费停车时长'"`
	ParkingLotCreatedAt       time.Time `json:"parking_lot_created_at" gorm:"type:datetime"`
	ParkingLotUpdatedAt       time.Time `json:"parking_lot_updated_at" gorm:"type:datetime"`
	ReconciliationId          int       `json:"reconciliation_id" gorm:"type:int(11); NOT NULL; "`
	ReconciliationParkCode    string    `json:"reconciliation_park_code" gorm:"type:varchar(255); COMMENT:'停车场编码'"`
	ReconciliationBasePath    string    `json:"reconciliation_base_path" gorm:"type:varchar(255); "`
	ReconciliationDatePath    string    `json:"reconciliation_date_path" gorm:"type:varchar(255)"`
	ReconciliationFilePath    string    `json:"reconciliation_file_path" gorm:"type:varchar(255)"`
	ReconciliationOutFilePath string    `json:"reconciliation_out_file_path" gorm:"type:varchar(255);COMMENT:'输出文件路径'"`
	ReconciliationStatus      int       `json:"reconciliation_status" gorm:"type:tinyint(1);  COMMENT:'状态 0待进行 1进行中 2结束'"`
	ReconciliationType        int       `json:"reconciliation_type" gorm:"type:tinyint(1); COMMENT:'类型 1小强 2泊安飞'"`
	ReconciliationCreatedAt   time.Time `json:"reconciliation_created_at" gorm:"type:datetime"`
	ReconciliationUpdatedAt   time.Time `json:"reconciliation_updated_at" gorm:"type:datetime"`
}

func (c *ReconciliationViewStruct) TableName() string {
	return "reconciliation_view"
}
